.class Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;
.super Ljava/lang/Object;
.source "FootprintDetailEditActivity.java"

# interfaces
.implements Landroid/content/ServiceConnection;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1330
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
    .locals 3
    .parameter "componentname"
    .parameter "ibinder"

    .prologue
    const-string v2, "FootprintDetailEditActivity"

    .line 1306
    const-string v1, "FootprintDetailEditActivity"

    const-string v1, "onServiceConnected. mBindState = SERVICE_BINDED"

    invoke-static {v2, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1307
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-static {p2}, Lcom/htc/android/footprints/ILocationAgentService$Stub;->asInterface(Landroid/os/IBinder;)Lcom/htc/android/footprints/ILocationAgentService;

    move-result-object v2

    iput-object v2, v1, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    .line 1308
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    const/4 v2, 0x2

    #setter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBindState:I
    invoke-static {v1, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2802(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;I)I

    .line 1311
    :try_start_0
    const-string v1, "FootprintDetailEditActivity"

    const-string v2, "mService.resume() at onServiceConnected"

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1312
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->resume()V

    .line 1314
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCallback:Lcom/htc/android/footprints/ILocationAgentCallback;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2900(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/ILocationAgentCallback;

    move-result-object v2

    invoke-interface {v1, v2}, Lcom/htc/android/footprints/ILocationAgentService;->registerCallback(Lcom/htc/android/footprints/ILocationAgentCallback;)V

    .line 1315
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->isTracking()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 1316
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mGpsUpdate:Landroid/widget/ImageView;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2400(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/ImageView;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 1317
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getWindow()Landroid/view/Window;

    move-result-object v1

    const/16 v2, 0x80

    invoke-virtual {v1, v2}, Landroid/view/Window;->addFlags(I)V

    .line 1328
    :cond_0
    :goto_0
    return-void

    .line 1318
    :cond_1
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsUpdateRequired:Z
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2600(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 1319
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mGpsUpdate:Landroid/widget/ImageView;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2400(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/ImageView;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 1320
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->enableMyLocation()V

    .line 1321
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getWindow()Landroid/view/Window;

    move-result-object v1

    const/16 v2, 0x80

    invoke-virtual {v1, v2}, Landroid/view/Window;->addFlags(I)V

    .line 1322
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    const/4 v2, 0x0

    #setter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsUpdateRequired:Z
    invoke-static {v1, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2602(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Z)Z
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 1325
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 1326
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0
.end method

.method public onServiceDisconnected(Landroid/content/ComponentName;)V
    .locals 2
    .parameter "componentname"

    .prologue
    .line 1331
    const-string v0, "FootprintDetailEditActivity"

    const-string v1, "onServiceDisconnected. mBindState = SERVICE_UNBIND"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1332
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    const/4 v1, 0x0

    #setter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBindState:I
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2802(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;I)I

    .line 1339
    return-void
.end method
